TARGET = asciirt
SRCS := $(wildcard src/*.c)
OBJS := $(patsubst %.c, %.o, $(SRCS))
INCLUDES = includes/

CFLAGS = -g -Wall -Werror -DDEBUG -ansi -pedantic -lm
CC = gcc

all: $(TARGET)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -I $(INCLUDES) -o $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -I $(INCLUDES) -c $^ -o $@

clean:
	rm -f $(OBJS) $(TARGET)
